package com.tentact.service;

import com.tentact.dao.Chf_empDao;
import com.tentact.vo.Employee;

import java.util.List;

public class Chf_empService {
    Chf_empDao c_ed=new Chf_empDao();
    //通过账号状态查找
    public List<Employee> selectEmp(int employeeStatus){
        return  c_ed.selectEmp( employeeStatus);
    }
    //通过姓名或账号名查找
    public List<Employee> findEmpByNameOrUname(String name,String userName){
        return  c_ed.findEmpByNameOrUname(name,userName);
    }
    //通过状态从数组中查找
    public List<Employee> findEmpByStatus(int status,List<Employee> employeeList){
        return  c_ed.findEmpByStatus(status,employeeList);
    }
    //通过id改变账号状态
    public int  changeStatusById(int status,int employeeId){
        return  c_ed.changeStatusById(status,employeeId);
    }
}
